<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html >
<html>
<head>
<title>中国建设银行 企业网上银行</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--第二步：css文件嵌入(示具体情况而定引用文件)-->
<link href="/css6/ccb6.css"  rel="stylesheet" type="text/css" />
<!--第三步：js文件嵌入(示具体情况而定引用文件)-->
<script language="javascript" src="/js6/ccb6.js" ></script>
<script language="javascript" src="/js6/jh6.js" ></script>
<script language="javascript" src="/js6/calendar.js" ></script>
<script language="javascript" src="/js6/sortTable.js" ></script>
<script language="javascript" >
/*function xiangfu(){
	document.jhform.action="/webpage_demo/check/F6A0304_1.htm";
   	document.forms[0].submit();
}
*/
function buxiangfu(){
	document.jhform.action="/webpage_demo/check/F6A0304_1.htm";
   	document.forms[0].submit();
}
function fnFormSubmit(){ /*结果页面提示信息可能需要动态传递参数控制*/
		if(isAllChecked() == false){
			alert("请选择需要处理的册号");
			//return;
			document.jhform.action="";
		}else{
			if(allChecked() == true){//如果全选
				document.jhform.action="/webpage_demo/check/F6A0303_2.htm";
			}else{
				document.jhform.action="/webpage_demo/check/F6A0303_1.htm";
			}
		}

}
function isAllChecked() {
	var retVal = false;
	for(var i = 0;i < document.getElementsByName("choose").length;i++){
		retVal = retVal || document.getElementsByName("choose")[i].checked;
	}
	return retVal;
}
/**
 全选
*/
function allChecked(){
	if(document.all.allChoose.checked == true){
		for(var i =0;i < document.getElementsByName("choose").length;i++){
			document.getElementsByName("choose")[i].checked = true;
		}
		return true;
	}else {
		for(var i = 0;i < document.getElementsByName("choose").length;i++){
			document.getElementsByName("choose")[i].checked = false;
		}
		return false;
	}
}
function openChildDialog(){
	var k = window.showModalDialog("/webpage_demo/check/F6A0220.htm",window,"dialogWidth:800px;scroll:yes;resizable:yes;dialogHeight:600px"); 
}

function loadSmallWindow(obj)
{
	var div = document.getElementById("selectDownLoadDiv");

	if(div.style.display ==""){
		div.style.display = "none";
	}else{
		div.style.display = "";
	}
 
	/**根据实际情况控制提示div的位置*/
	div.style.top = obj.offsetTop - 50;
	div.style.left= obj.offsetLeft + 10;
}

function submitSelect(index){
      var div = document.getElementById("selectDownLoadDiv");
      onSelectRadiobutton(div,index);
}
function onSelectRadiobutton(divObj,index){
	  var count=0; 
	  var radioB=document.getElementsByName("radiobutton");   
	
	  for(var i=0;i<radioB.length;i++){   
	      if(radioB[i].checked){
		    var radioValue=radioB[i].value;
			count+=1;
			if(count>1)
			{
			    alert("只能选择一种下载方式");
				return false;
			}
		  }	 
	  }
	//return;
	divObj.style.display = "none";
	for(var i=0;i<radioB.length;i++){ 
	  radioB[i].checked=false;
	}
	if(index=='Txt'){
		location.href='明细账文件Txt.rar';
	}else if(index=='Csv'){
		location.href='明细账文件Csv.rar';
	}else if(index=='Excel'){
		location.href='明细账文件Excel.rar';
	}

}
var num = 9;
var num1 = 1;
</script>
</head>
<!--第四步：body代码-->
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="commonLoads();" onUnload="commonUnloads();" onbeforeunload="commonBeforeUnloads();">
<!--页面的主体语句-->
<!--第五步：页面头代码-->
<script language="javascript">showHead();</script>
<form name="jhform" method="post" action="">
	<!--第六步：显示“交易头”（例子）-->	
	<script language="javascript">showTXHead("明细账查询","");</script>
	<!--第七步：具体交易-->
<table class="ccb_table_confirm" cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
		<td  colspan="4">
	<script>
		wirteTableHead('账户基本信息')
	</script>
		</td>
			</tr>

    <tr>
      <td class="ccb_table_confirm_tit">开户机构：</td>
      <td width="30%">中国建设银行股份有限公司天津南开支行营业部</td>
      <td class="ccb_table_confirm_tit">币种：</td>
      <td width="30%">人民币</td>
    </tr>
    <tr>
      <td class="ccb_table_confirm_tit">账号：</td>
      <td >12050165500000000997</td>
	    <td class="ccb_table_confirm_tit">账户类型：</td>
      <td >活期</td>
      <!-- <td  nowrap colspan="6">&nbsp</td> -->
    </tr>
    <tr>
      <td class="ccb_table_confirm_tit">账户名称：</td>
      <td >天津国脉电信设备销售有限公司</td>
      <td class="ccb_table_confirm_tit">账户状态：</td>
      <td >正常</td>
    </tr>
</table>
<br/>

<table class="ccb_table_normal" cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
	<td colspan="10" style="text-align: left;"><span >明细查询结果</span></td>
	</tr>
  <tr class="table_tr_tit">
    <td  nowrap class="table_td_tit" rowspan="2">唯一编号</td>
    <td  nowrap class="table_td_tit" rowspan="2">交易日期</td>
    <td  nowrap class="table_td_tit" rowspan="2">交易时间</td>
    <td  nowrap class="table_td_tit" rowspan="2">凭证<br>种类</td>
    <td  nowrap class="table_td_tit" rowspan="2">凭证号</td>
    <td  nowrap class="table_td_tit" colspan="2">发生额/元</td>
    <td  nowrap class="table_td_tit" rowspan="2">余额</td>
    <td nowrap class="table_td_tit" rowspan="2">对方户名</td>
    <td nowrap class="table_td_tit" rowspan="2">对方账号</td>
    <td  nowrap class="table_td_tit" rowspan="2">摘要</td>
  </tr>
  <tr class="table_tr_tit">
  	<td >借方</td>
    <td>贷方</td>
  </tr>
  <c:forEach items="${list }" var="item">
		<tr onMouseOver="tdOver(this)" onMouseOut="tdOut(this)">
			<td nowrap>???</td>
			<td nowrap><c:out value="${item['7']}" /></td>
			<td nowrap width="15%" align="left"><c:out value="${item['0']}" /></td>
			<td nowrap><c:out value="${item['12']}" /></td>
			<td nowrap><c:out value="${item['13']}" /></td>
			<td nowrap><c:out value="${item['1']}" /></td>
			<td nowrap><c:out value="${item['2']}" /></td>
			<td nowrap><c:out value="${item['3']}" /></td>
			<td nowrap><c:out value="${item['4']}" /></td>
			<td nowrap><c:out value="${item['5']}" /></td>
			<td nowrap><c:out value="${item['8']}" /></td>
		  </tr>
	</c:forEach>
	
	<tr align="right">
				<script language=javascript>
					document
							.write("<td nowrap  colspan="+num+"  class='table_page'>");
				</script>
				<script language="JavaScript">
					SplitPage("1", "1", "TXCODE|", "610101|", "BB")
				</script>
				</td>
			</tr>
</table>
<br>
  </div>
<!--结束-->
<div class="form_do">
	<input type="button" value="下载当前页" class="button_lessThan8" onClick="javascript:loadSmallWindow(this)"/>
	<input type="button" value="返回" class="button_lessThan4" onClick="document.location='/webpage_demo/check/F6A0200.htm'"/>
</div>

<div id="selectDownLoadDiv" class="select_DownLoad_Div" style="display:none;">
  <p>请选择下载方式：</p>
  <label><input type="checkbox" name="radiobutton" value="1" onClick=""/>Txt&nbsp;&nbsp;下载</label><br/>  
  <label><input type="checkbox" name="radiobutton" value="2" onClick=""/>Csv&nbsp;&nbsp;下载</label><br/>
  <label><input type="checkbox" name="radiobutton" value="3" onClick=""/>Excel&nbsp;下载</label>
 </div>
</form>
<!--第八步：页面尾代码-->
<script language="javascript">showFooter();</script>

</body>

</html>
